/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

export const lessonRoute = {
  path: '/lesson',
  component: Layout,
  alwaysShow: true, // will always show the root menu
  name: 'lesson',
  meta: {
    title: '英语教学',
    icon: 'el-icon-setting'
  },
  children: [
    {
      path: 'user',
      component: () => import('@/views/lesson/user/index.vue'),
      name: 'lesson-user',
      meta: {
        // roles: ['lesson:user'],
        icon: 'el-icon-user',
        title: '用户管理'
      }
    },
    {
      path: 'category',
      component: () => import('@/views/lesson/category/index.vue'),
      name: 'lesson-category',
      meta: {
        // roles: ['lesson:category'],
        icon: 'el-icon-menu',
        title: '教程分类'
      }
    },
    {
      path: 'article',
      component: () => import('@/views/lesson/article/index.vue'),
      name: 'lesson-article',
      meta: {
        // roles: ['lesson:category'],
        icon: 'el-icon-menu',
        title: '教程文章'
      }
    }
  ]
}
